package com.example.logistics_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.JobMakeoffer;
import com.example.comment_oa.pojos_vo.JibenSalaryChaXunVo;
import com.example.logistics_oa.service.JobMakeofferService;
import com.example.logistics_oa.mapper.JobMakeofferMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 安徽彭于晏
* @description 针对表【job_makeoffer】的数据库操作Service实现
* @createDate 2022-10-17 08:45:03
*/
@Service
public class JobMakeofferServiceImpl extends ServiceImpl<JobMakeofferMapper, JobMakeoffer>
    implements JobMakeofferService{

    @Autowired
    JobMakeofferMapper jobMakeofferMapper;


    @Override
    public List<JobMakeoffer> selectAll(JibenSalaryChaXunVo jibenSalaryChaXunVo) {
        return jobMakeofferMapper.selectAll(jibenSalaryChaXunVo);
    }

    @Override
    public int updateGangWeiJinTie(Double jmoJobsalary, int jmoId) {
        return jobMakeofferMapper.updateGangWeiJinTie(jmoJobsalary,jmoId);
    }

    @Override
    public int updateMinSalary(Double jmoMinsalary, int jmoId) {
        return jobMakeofferMapper.updateMinSalary(jmoMinsalary,jmoId);
    }

    @Override
    public int updateMaxSalary(Double jmoMaxsalary, int jmoId) {
        return jobMakeofferMapper.updateMaxSalary(jmoMaxsalary, jmoId);
    }

    @Override
    public int updateMaxAndMin(Double jmoJobsalary, Double jmoMinsalary, int jmoId) {
        return jobMakeofferMapper.updateMaxAndMin(jmoJobsalary, jmoMinsalary, jmoId);
    }

    @Override
    public List<JobMakeoffer> selectGangWeiJinTie(int jmoDepartmentid, int jmo_jobid) {
        return jobMakeofferMapper.selectGangWeiJinTie(jmoDepartmentid,jmo_jobid);
    }

    @Override
    public List<JobMakeoffer> selectMaxAndMinByZhiwuId(int jmoJobid) {
        return jobMakeofferMapper.selectMaxAndMinByZhiwuId(jmoJobid);
    }
}




